package com.shycloud.mido.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shycloud.mido.member.api.entity.BasicAppShoppingCart;
import com.shycloud.mido.member.api.vo.AppAppShoppingCartVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Xiaoxing Yu
 * @date 1/29/21 12:40 PM
 **/
public interface BasicShoppingCartMapper extends BaseMapper<BasicAppShoppingCart> {

	AppAppShoppingCartVO selectExistingItem(@Param("memberId") String memberId,
											@Param("goodsId") Integer goodsId,
											@Param("collectionId") Integer collectionId);

	List<AppAppShoppingCartVO> selectShoppingCart(@Param("memberId") String memberId);
}
